<!--网站导航.搜索条1-->
<p><h4>应用信息</h4><hr></p>
<table class="table table-striped">
    <colgroup>
        <col class="span1">
        <col class="span7">
    </colgroup>
    <thead>
        <tr>
            <th>应用信息</th>
            <th></th>
            <th><a href="/app/edit/id/<?php echo $data["id"];?>" class="btn">编辑</a></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>
                <code>应用名称：</code>
            </td>
            <td><?php echo $data["name"];?></td>
        </tr>
        <tr>
            <td>
                <code>应用分类：</code>
            </td>
            <td><?php echo $appClass[$data["classid"]]["title"];?></td>
        </tr>
        <tr>
            <td>
                <code>应用介绍：</code>
            </td>
            <td><?php echo $data["introduce"];?></td>
        </tr>
        <tr>
            <td>
                <code>下载URL：</code>
            </td>
            <td><?php echo $data["appurl"];?></td>
        </tr>
        <tr>
            <td>
                <code>应用图标：</code>
            </td>
            <td><?php echo $data["appimg"];?></td>
        </tr>
        <tr>
            <td>
                <code>应用状态：</code>
            </td>
            <td><?php echo $data["status"];?></td>
        </tr>
    </tbody>
</table>
<p><h4>广告设置</h4><hr></p>
<table class="table table-condensed">
    <thead>
        <tr>
            <th>您的游戏计分方式：</th>
            <th><?php echo $data["adinfo"][0]["fun_type"];?></th>
            <th><a href="/app/editset/id/<?php echo $data["id"];?>" class="btn">编辑</a></th>
        </tr>
    </thead>
    <tbody>
        <?php for($i=1;$i<9;$i++){ ?>
        <tr>
            <td>第<?php echo $i;?>级广告位：</td>
            <td><?php echo $data["adinfo"][$i]["one"];?> ~ <?php echo $data["adinfo"][$i]["two"];?></td>
        </tr>
        <?php } ?>
        <tr>
            <td></td>
            <td></td>
        </tr>
    </tbody>
</table>
<?php if($data["uptim"]>0){  ?>
<p><h4>上传应用</h4><hr></p>
<table class="table table-condensed">
    <tbody>
        <tr>
            <td>客户端名称：</td>
            <td><?php echo $data["downurl"];?></td>
            <td></td>
        </tr>
        <tr>
            <td>上传时间：</td>
            <td>与 <?php echo date("Y-m-d H:i:s",$data["uptim"]);?> 上传</td>
            <td></td>
        </tr>
        <tr>
            <td>app key：</td>
            <td><span id="key"><?php echo $data["appkey"];?></span></td>
            <td><div class="btn" onclick="copyText('key');"><span>复制</span></div></td>
        </tr>
        <tr>
            <td>app secret：</td>
            <td><span id="secret"><?php echo $data["appsecret"];?></span></td>
            <td><div class="btn" onclick="copyText('secret');"><span>复制</span></div></td>
        </tr>
        <tr>
            <td></td>
            <td></td>
            <td></td>
        </tr>
    </tbody>
</table>
<script src="<?php echo JS_HOST; ?>/js/jquery.copy.js"></script>
<script type="text/javascript">
    function copyText(keycoy){
        var str=$("#"+keycoy).html();
        $.copy(str);
        alert("成功复制剪贴板");
    }
</script>
<?php } ?>